﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Macds.Test.Core.ServiceLocator.Mocks
{
    public class ServiceElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public String Name
        {
            get { return (String)this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("assembly", IsRequired = true)]
        public String Assembly
        {
            get { return (String)this["assembly"]; }
            set { this["assembly"] = value; }
        }

        [ConfigurationProperty("class", IsRequired = true)]
        public String Class
        {
            get { return (String)this["class"]; }
            set { this["class"] = value; }
        }

        public override string ToString()
        {
            return Name.ToString();
        }
    }
}
